package com.component.swing.pannel;

import javax.annotation.PostConstruct;
import javax.swing.JPanel;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.component.swing.Frame;
import com.internal.system.System;

import java.awt.BorderLayout;

@Component
public class MainPannel extends JPanel {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	final static Logger log = Logger.getLogger(MainPannel.class);

	/**
	 * Create the panel.
	 */
	
	@Autowired private DockPannel dock;
	@Autowired private System system;
	
	public MainPannel() {
		setLayout(new BorderLayout(0, 0));
		setName("mainPanel");
		TextPannel text = new TextPannel();
		this.add(text,BorderLayout.CENTER);

	}
	
	@PostConstruct
	public void setting(){
		this.add(dock,BorderLayout.WEST);
		
	}

}
